# admin.py  
from django.contrib import admin
from .models import UserInfor


@admin.register(UserInfor)
class UserInforAdmin(admin.ModelAdmin):
    list_display = (
    'username', 'ProvinceName', 'City', 'TreeSpecies', 'Quantity', 'Diameter', 'Height', 'dry_biomass', 'total_biomass',
    'carbon_storage', 'total_carbon_storage_all', 'carbon_sinks', 'total_carbon_sinks')
    search_fields = ('username', 'ProvinceName', 'City', 'TreeSpecies')
    list_filter = ('ProvinceName', 'City', 'TreeSpecies')